package xyz.weblade.beans.factory.config;

import xyz.weblade.beans.BeansException;
import xyz.weblade.beans.factory.BeanFactory;

/**
 * 自动化处理Bean工厂配置的接口
 */
public interface AutoWireCapableBeanFactory extends BeanFactory {

        /**
         * 执行 BeanPostProcessors 接口实现类的 postProcessBeforeInitialization 方法
         */
        Object applyBeanPostProcessorsBeforeInitialization(Object existingBean, String beanName) throws BeansException;

        /**
         * 执行 BeanPostProcessors 接口实现类的 postProcessorsAfterInitialization 方法
         */
        Object applyBeanPostProcessorsAfterInitialization(Object existingBean, String beanName) throws BeansException;

    }
